package pe.gob.onp.util;

import java.io.Serializable;
import java.util.List;

public interface LazyLoadable extends Serializable{ 

 /**
 * This method update the managed list.
 * @param index the startPoint for the lazy loading
 * @param pageSize the max. number of elements to load
 * @return a dynamic List
 */
 public List getUpdatedList(int index, int pageSize)  throws Exception ;

 /**
 * This method returns how much elements are in the list (DB).
 * @return Long list size
 */
 public Long getSize();
 
 /**
  * Set the size of the List (number of all elements in DB)
  */
 public void setSize(Long size);

}
